package com.ceair.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serial;
import java.io.Serializable;
import java.math.BigDecimal;

/**
 * <p>
 * 样例订单表
 * </p>
 *
 * @author wangbaohai
 * @since 2025-05-21
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("order_demo")
public class OrderDemo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 主键ID
     */
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;

    /**
     * 订单号
     */
    @TableField("order_no")
    private String orderNo;

    /**
     * 收货人名称
     */
    @TableField("consignee")
    private String consignee;

    /**
     * 收货人联系方式
     */
    @TableField("consignee_phone")
    private String consigneePhone;

    /**
     * 收货人邮箱
     */
    @TableField("consignee_email")
    private String consigneeEmail;

    /**
     * 收货人地址
     */
    @TableField("consignee_address")
    private String consigneeAddress;

    /**
     * 发货人名称
     */
    @TableField("consigner")
    private String consigner;

    /**
     * 发货人联系方式
     */
    @TableField("consigner_phone")
    private String consignerPhone;

    /**
     * 发货人邮箱
     */
    @TableField("consigner_email")
    private String consignerEmail;

    /**
     * 发货人地址
     */
    @TableField("consigner_address")
    private String consignerAddress;

    /**
     * 货物描述
     */
    @TableField("goods_description")
    private String goodsDescription;

    /**
     * 货物类型
     */
    @TableField("goods_type")
    private String goodsType;

    /**
     * 包装类型
     */
    @TableField("packaging_type")
    private String packagingType;

    /**
     * 货物总重量
     */
    @TableField("total_weight")
    private BigDecimal totalWeight;

    /**
     * 获取总件数
     */
    @TableField("total_pieces")
    private Integer totalPieces;


}
